/*
 * $Id: AbstractCfgTaskFtDetailsId.java,v 1.4 2009/07/24 18:27:41 oliver Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

package com.ge.healthcare.autosc.common.database.pojo;

/**
 * AbstractCfgTaskFtDetailsId entity provides the base persistence definition of
 * the CfgTaskFtDetailsId entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractCfgTaskFtDetailsId implements
		java.io.Serializable {

	// Fields

	/**
	 * Eclipse generated
	 */
	private static final long serialVersionUID = -1232692348063310794L;
	private String taskTypeName;
	private String logFilePattern;

	// Constructors

	/** default constructor */
	public AbstractCfgTaskFtDetailsId() {
	}

	/** full constructor */
	public AbstractCfgTaskFtDetailsId(String taskTypeName, String logFilePattern) {
		this.taskTypeName = taskTypeName;
		this.logFilePattern = logFilePattern;
	}

	// Property accessors

	public String getTaskTypeName() {
		return this.taskTypeName;
	}

	public void setTaskTypeName(String taskTypeName) {
		this.taskTypeName = taskTypeName;
	}

	public String getLogFilePattern() {
		return this.logFilePattern;
	}

	public void setLogFilePattern(String logFilePattern) {
		this.logFilePattern = logFilePattern;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractCfgTaskFtDetailsId))
			return false;
		AbstractCfgTaskFtDetailsId castOther = (AbstractCfgTaskFtDetailsId) other;

		return ((this.getTaskTypeName() == castOther.getTaskTypeName()) || (this
				.getTaskTypeName() != null
				&& castOther.getTaskTypeName() != null && this
				.getTaskTypeName().equals(castOther.getTaskTypeName())))
				&& ((this.getLogFilePattern() == castOther.getLogFilePattern()) || (this
						.getLogFilePattern() != null
						&& castOther.getLogFilePattern() != null && this
						.getLogFilePattern().equals(
								castOther.getLogFilePattern())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getTaskTypeName() == null ? 0 : this.getTaskTypeName()
						.hashCode());
		result = 37
				* result
				+ (getLogFilePattern() == null ? 0 : this.getLogFilePattern()
						.hashCode());
		return result;
	}

}
